<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="{{ static_url('templates/style.css') }}" media="screen" rel="stylesheet" type="text/css" />
<link href="{{ static_url('templates/reset.css') }}" media="screen" rel="stylesheet" type="text/css" />
<link href="{{ static_url('templates/invalid.css') }}" media="screen" rel="stylesheet" type="text/css" />
<title>无线后台Phone2.0 VV统计</title>
<SCRIPT LANGUAGE="Javascript" SRC="/static/templates/js/jquery-1.7.js"></SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="/static/charts/js/FusionCharts.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
		var strXML = "{%raw xmlStr%}";
		function updateChart(chartSWF){
			//Create another instance of the chart.
			var chart1 = new FusionCharts(chartSWF, "chart1Id", "1200", "300", "0", "0");		   			
			chart1.setDataXML(strXML);
			chart1.render("chart1div");
		}
		var time="{{time}}"
		var platform="{{platform}}"
		$(document).ready(function(){
			$("#platform").val(platform)
			$("#time").val(time)
		});
</SCRIPT>
</head>
<body>
<h3>无线后台Phone2.0 UV统计</h3>
<div id="right-content">
<a href="/client/pv">PV统计</a>
&nbsp;
<a href="/client/uv">UV统计</a>
</div>
<div id="left-content">
<form name='frmUpdate' action="/client/uv">
<select id="time" name="time">
	<option value="201110">2011年10月</option>
	<option value="201111">2011年11月</option>
	<option value="201112">2011年12月</option>
	<option value="201201">2012年1月</option>
</select>
<input type='submit' value='查询' name='btnPie' />		
</form>
</div>
<div id="right-content">
<form name='frmUpdate'>
Show as:		
<input type='button' value='Column' onClick="javaScript:updateChart('/static/charts/fcf/FCF_MSColumn3D.swf ');" name='btnColumn' />		
<input type='button' value='Line' onClick="javaScript:updateChart('/static/charts/fcf/FCF_MSLine.swf');" name='btnLine' />		
</form>
</div>
<div id="main-content">
<div id="chart1div">
			FusionCharts
</div>
<script language="JavaScript">					
	var chart1 = new FusionCharts("/static/charts/fcf/FCF_MSColumn3D.swf", "chart1Id", "1200", "400", "0", "0");
	chart1.setDataXML(strXML);
	chart1.render("chart1div");
</script>
<div class="nav"></div>
<div class="content-box">
<div class="content-box-header">
	<div class="top0">&nbsp;</div>
</div>
<div class="content-box-content">
<table class="main-content">
<tbody>
<tr><th>Date</th><th>Android VV</th><th>IOS VV</th></tr>
</tbody>
{% for i in range(len(android_vv2)) %}
    <tr>
	<td align='center'>{{keys[i]}}</td>
    <td align='center'>{{android_vv2[keys[i]]}}</td>
    <td align='center'>{{ios_vv2[keys[i]]}}</td>
    </tr>
{% end %}
</table>
</div>
</div>
</div>

</body>
</html>
